package com.hxzy.bean;

import java.time.LocalDateTime;


public class Message {
    private Integer id;
    private String topic;
    private String content;
    private LocalDateTime mesDate;
    private User user;

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                ", mesDate=" + mesDate +
                ", user=" + user +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getMesDate() {
        return mesDate;
    }

    public void setMesDate(LocalDateTime mesDate) {
        this.mesDate = mesDate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Message() {
    }

    public Message(Integer id, String topic, String content, LocalDateTime mesDate, User user) {
        this.id = id;
        this.topic = topic;
        this.content = content;
        this.mesDate = mesDate;
        this.user = user;
    }
}
